package com.aier.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * SysBase entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "sys_base", catalog = "abc")
public class SysBase implements java.io.Serializable {

    // Fields

    private Integer bid;
    private String name;
    private String value;
    private String des;

    // Constructors

    /** default constructor */
    public SysBase() {
    }

    /** minimal constructor */
    public SysBase(String name) {
        this.name = name;
    }

    /** full constructor */
    public SysBase(String name, String value, String des) {
        this.name = name;
        this.value = value;
        this.des = des;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "bid", unique = true, nullable = false)
    public Integer getBid() {
        return this.bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    @Column(name = "name", nullable = false, length = Constant.num_20)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "value", length = Constant.num_100)
    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Column(name = "des", length = Constant.num_100)
    public String getDes() {
        return this.des;
    }

    public void setDes(String des) {
        this.des = des;
    }

}